Class ZipSelectedAddFile

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----com.sun.java.swing.JDialog
                                           |
                                           +----ZipSelectedAddFile

public class ZipSelectedAddFile
extends JDialog
Class used to select file to add in the current archive

Version:
1.0
Author:
Frank Moisant - Patrick Titiano
See Also:
ZipTable, ZipButton

Variable Index

 o canceled
 o checkBox
 o comboBox
 o currentDirectory
 o files
 o positionInPathName
 o result
 o scrollPane
 o upButton
 o zipTable

Constructor Index

 o ZipSelectedAddFile(Frame)
Class constructor

Method Index

 o getSelectedFiles()
Method return the selected files or/and directories
 o isResizable()
Method calls when the window manager want to resize th Dialog
 o setPath(String)
set the path to display
 o setRecurseFilesOf(File)
Add recurse folder in global variable result

Variables

 o scrollPane
 private JScrollPane scrollPane
 o zipTable
 private ZipTable zipTable
 o upButton
 private ZipButton upButton
 o files
 private Vector files
 o currentDirectory
 private String currentDirectory
 o comboBox
 private JComboBox comboBox
 o checkBox
 private JCheckBox checkBox
 o result
 private Vector result
 o positionInPathName
 public int positionInPathName
 o canceled
 public boolean canceled

Constructors

 o ZipSelectedAddFile
 public ZipSelectedAddFile(Frame owner)
Class constructor

Parameters:
owner - the frame which instanciate the dialog

Methods

 o setPath
 public void setPath(String path)
set the path to display

Parameters:
path - the path to display
 o isResizable
 public boolean isResizable()
Method calls when the window manager want to resize th Dialog

Returns:
always false
Overrides:
isResizable in class Dialog
 o setRecurseFilesOf
 private void setRecurseFilesOf(File directory)
Add recurse folder in global variable result

Parameters:
directory - a file to the directory to recurse
 o getSelectedFiles
 public Vector getSelectedFiles()
Method return the selected files or/and directories

Returns:
a vector with the path + file name of all files